package com.lyl.activiti.demo.listener;

import java.util.HashMap;
import java.util.logging.Logger;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

public class CheckMerchantTask implements TaskListener {
	private final Logger log = Logger.getLogger(CheckMerchantTask.class
			.getName());

	public void notify(DelegateTask delegateTask) {
		log.info("i am CheckMerchantTask.");
		System.out.println("in : " + delegateTask.getVariables());
//		((HashMap<String, Object>) delegateTask.getVariables().get("in")).put(
//				"previous", "CheckMerchantTask");
	}
}
